package br.com.beiramar.manager.abstractmanager;

import javax.persistence.EntityManager;
import org.jboss.seam.annotations.In;

public abstract class AbstractManager {
    
    @In(create=true, required=false)
    protected EntityManager entityManager;

    /**
     * Retorna o EntityManager
     * @return
     */
    //get e set do EntityManager
    protected EntityManager getEntityManager() {
        return entityManager;
    }

    /**
     * Define o EntityManager
     * @param entityManager
     */
    protected void setEntityManager(EntityManager entityManager) {
        this.entityManager = entityManager;
    }
}